package com.example.bookdemo.model;

import lombok.Data;

@Data
public class RequestPage {
    //后面的值是默认值,如果没有传数据,就使用默认值
    private Integer currentPage=1;
    private Integer pageSize =10;

    public Integer getOffset(){
        return (currentPage-1)*pageSize;
    }
}
